package com.ruoyi.system.domain;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 我的参赛项目对象 tb_student_race
 *
 * @author yusheng
 * @date 2024-01-23
 */
@TableName("tb_student_race")
@EqualsAndHashCode(callSuper = true)
@Data
public class StudentRace extends Model<StudentRace> {

    /**
     * 序号
     */
    @TableId(type = IdType.AUTO)
    @Excel(name = "序号")
    private Integer id;

    /**
     * 学生的id
     */
    private Integer userId;

    /**
     * 项目的id
     */
    private Integer raceId;

    @TableField(exist = false)
    @Excel(name = "学生性别")
    private Integer sex;

    /**
     * 运动会名称
     */
    @TableField(exist = false)
    @Excel(name = "运动会名称")
    private String gameName;

    /**
     * 参赛项目名称
     */
    @TableField(exist = false)
    @Excel(name = "参赛项目名称")
    private String raceName;

    /**
     * 参赛项目类型
     */
    @TableField(exist = false)
    @Excel(name = "参赛项目类型")
    private Integer raceType;

    /**
     * 场地图片
     */
    @TableField(exist = false)
    @Excel(name = "场地图片")
    private String raceImg;

    /**
     * 比赛开始时间
     */
    @TableField(exist = false)
    @Excel(name = "比赛开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime startTime;

    /**
     * 比赛成绩
     */
    @Excel(name = "比赛成绩")
    private String raceScore;

    /**
     * 比赛排名
     */
    @Excel(name = "比赛排名")
    private Integer raceRank;

}
